<?php
namespace app\index\controller;
use houdunwang\arr\Arr;
class Index extends Common
{

    public function index()
    {
//        dump(session('username'));
//        dump(session('?username'));
//        $cartdata = $this->category();
//        dump($cartdata);die;
        $cdata = db('category')->limit(5)->select();
        $field = Arr::channelLevel(db('category')->where('id>5')->select(), $pid = 0, $html = "&nbsp;", $fieldPri = 'id', $fieldPid = 'pid');
        return $this->template('',compact('field','data','cdata',''));
    }
}
